package com.kyz.speechsdk.engine.entity;

//引擎返回结果
public class EngineResult {
    public static int ENGINE_LOCAL = 1; //本地引擎
    public static int ENGINE_SERVER = 2; //服务器引擎
    public static int ENGINE_IFLY = 3;    //讯飞引擎

    private String answer; //语义理解结果
    private int engineType; //引擎类型
    private int code;  //状态码

    public EngineResult() {
    }

    public EngineResult(String answer, int engineType) {
        this.answer = answer;
        this.engineType = engineType;
    }

    public EngineResult(String answer, int engineType, int code) {
        this.answer = answer;
        this.engineType = engineType;
        this.code = code;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getEngineType() {
        return engineType;
    }

    public void setEngineType(int engineType) {
        this.engineType = engineType;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "EngineResult{" +
                "answer='" + answer + '\'' +
                ", engineType=" + engineType +
                ", code=" + code +
                '}';
    }

}
